package com.github.wui.chart.chartDataSet;


import android.graphics.Color;

/**
 * 用于线性柱状图的数据集
 *
 * @author Mr.xie
 */
public class LineChartDataSet {

    /**
     * X轴标签
     */
    private String label;


    /**
     * 对应的数值
     */
    private double value;


    private int color = Color.BLACK;


    public LineChartDataSet() {
    }

    public LineChartDataSet(String label, double pos) {
        this.label = label;
        this.value = pos;
    }


    public LineChartDataSet(String label, double pos,  int color) {
        this.label = label;
        this.value = pos;
        this.color = color;
    }

    public String getLabel() {
        return label;
    }

    public void setLabel(String label) {
        this.label = label;
    }

    public double getValue() {
        return value;
    }

    public void setValue(double value) {
        this.value = value;
    }

    public void setColor(int color) {
        this.color = color;
    }

    public int getColor() {
        return color;
    }

    @Override
    public String toString() {
        return "LineChartDataSet{" +
                "label='" + label + '\'' +
                ", pos=" + value +
                ", color=" + color +
                '}';
    }
}
